package com.yuanchu.store.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.yuanchu.common.validator.ValidationGroups;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-02-25 19:26
 */
@Data
public class EditUserParamsDto implements Serializable {
    private UserParamsForm form;
    @NotNull(message = "userId不能为空", groups = {ValidationGroups.Delete.class, ValidationGroups.Edit.class})
    private Integer userId;
    @Data
    public static class UserParamsForm {
        private Integer avatarId;
        private String nickName;
        private String remark;
        @JsonProperty("grade_id")
        private Integer gradeId;
    }
}
